package com.zstu.lvxiang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 时间安排事项表
 * </p>
 *
 * @author Trafalgar
 * @since 2022-03-16
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
public class TimeCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 安排事项
     */
    private String name;

    /**
     * 是否删除
     */
    private Boolean deleted;

    public TimeCategory(String name, Boolean deleted) {
        this.name = name;
        this.deleted = deleted;
    }
}
